#include <iostream>
#include <compare>

using namespace std;

class A
{
	int i = 0;
public:
	constexpr strong_ordering operator<=>(const A& other) const
	{
		return i <=> other.i;
	}

	bool operator==(const A& other) const
	{
		return i == other.i;
	}
};

int main()
{
	cout << (A() == A()) << endl;
	cout << (A() != A()) << endl;

	return 0;
}